package com.qiaoanju.back.service.system;

import com.qiaoanju.back.domain.system.DictModel;
import com.qiaoanju.back.domain.system.MenuModel;
import com.qiaoanju.back.domain.system.RoleModel;

import java.util.List;
import java.util.Map;

/**
 * Created by eversec on 2017/10/10.
 */
public interface IRoleService {

    /**
     * 根据groupId获取角色
     * @param groupId
     * @return
     */
    List<RoleModel>  getRoleByGroupId(int groupId);

    List<RoleModel> getRolesList(Map<String, Object> params);

    int insert(RoleModel role);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    int deleteByIds(int[] ids);

    int deleteById(int id);

    RoleModel getRoleById(int id);

    boolean edit(RoleModel editModel);
}
